package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Employee;


public interface EmployeeService {

    /**
     * 查寻全部
     * @param employee
     * @return
     */
    Employee findAll(Employee employee);

    /**
     * 添加操作
     * @param employee
     * @return
     */
    int add(Employee employee);

    /**
     * 分页操作
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    IPage<Employee> findPage(int page,int pageSize,String name);

    /**
     * 修改操作
     * @param employee
     * @return
     */
    int updateStatus(Employee employee);

    /**
     * 通过id查找
     * @param id
     * @return
     */
    Employee findById(long id);
}
